JavaScript

A5.chartDefinition Line Object

Description

The definition of a chart line.

Properties

typestring

The type of line to draw. Values can be "solid", "dotted", "dashed", "long-dashed", "dot-dashed" and "dot-long-dashed". All values except "solid" can have a suffix of a "+" followed by a number to increase the spacing.

colorstringarrayfunction(data,temp)

The color of the line. A value of "default" (the default), will use the default color for the element from the palette. If a gradient is being used, then an array of two colors can be passed in to explicitly set the start and end color. If a single color is passed in then the gradient colors will automatically be created with that color as the midpoint. A value of "none" or "transparent" will result in the line not being drawn. A function can be used to dynamically calculate the color (see A5.chart Render Data Object).

gradientstringfunction(data,temp)

The name of the gradient to use. A value of "none" (the default), will not use a gradient. See A5.chart.u.style.defaults.gradients. A function can be used to dynamically calculate the gradient (see A5.chart Render Data Object).

widthnumberfunction(data,temp)

The width of the line. A function can be used to dynamically calculate the width (see A5.chart Render Data Object).

opacitynumberfunction(data,temp)

The opacity of the line from 0 (transparent) to 1 (solid). A function can be used to dynamically calculate the opacity (see A5.chart Render Data Object).